package cn.tedu.csmall.product.pojo.param;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class CategoryAddNewParam implements Serializable {


    @NotNull(message = "添加品牌失败，必须提交品牌名称")
    private String name;



    private Long parentId;


    private Integer depth;


    private String keywords;

    @NotNull(message = "添加品牌失败，必须提交品牌名称")
    @Range(max = 99, message = "排序序号值必须在0-99之间")

    private Integer sort;


    private String icon;

    @Range(min = 0, max = 1, message = "启用状态0-1")
    private Integer enable;


    private Integer isParent;

    @Range(min = 0, max = 1, message = "启用状态0-1")
    private Integer isDisplay;

}
